package com.pi2e.view.activity;

import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.View.OnClickListener;

import com.pi2e.R;
import com.pi2e.view.base.BaseActivity;
import com.pi2e.view.common.FootView;
import com.pi2e.view.common.HeaderView;

public class StepIntoRoomActivity extends BaseActivity implements OnClickListener {

	View mfootview ;
	View mHeadView ;
	Handler handler ;
	
	Runnable run = new Runnable() {
		
		@Override
		public void run() {
			// TODO Auto-generated method stub
			
		}
	};
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		handler = new Handler(getMainLooper()) ;
		handler.postDelayed(run, 2000) ;
	}
	@Override
	public HeaderView initHeaderView() {
		HeaderView hv = new HeaderView(findViewById(R.id.headId),this) ;
		hv.getTitle_Tv().setText("早上好刘女士，欢迎光临白马湖建国饭店！我是服务机器人大艺，现在就带您去房间");
		return hv;
	}

	@Override
	public void setContentView() {
		setContentView(R.layout.activity_guidevip);

	}

	@Override
	public void initView() {
		mfootview = findViewById(R.id.footId) ;
		mHeadView = findViewById(R.id.headId) ;

	}

	@Override
	public void initFootView() {
		FootView footView = new FootView(StepIntoRoomActivity.this, mfootview) ;
		footView.getBtn_ok().setText("退 出");
		footView.getBtn_ok().setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				
				
				finish();
			}
		});
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		
	}

}
